<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "remark_email".
 *
 * @property integer $id
 * @property string $sender
 * @property string $sendto
 * @property string $subject
 * @property string $body
 * @property string $attach
 * @property integer $userid
 * @property string $username
 * @property integer $ymd
 * @property integer $ctime
 */
class Email extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'remark_email';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['body'], 'required'],
            [['body'], 'string'],
            [['userid', 'ymd', 'ctime'], 'integer'],
            [['sender', 'username'], 'string', 'max' => 100],
            [['sendto', 'subject', 'attach'], 'string', 'max' => 500],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'sender' => 'Sender',
            'sendto' => 'Sendto',
            'subject' => 'Subject',
            'body' => 'Body',
            'attach' => 'Attach',
            'userid' => 'Userid',
            'username' => 'Username',
            'ymd' => 'Ymd',
            'ctime' => 'Ctime',
        ];
    }
}
